package com.dmall.modules.admin.entity;


import javax.persistence.Table;
import java.util.Date;

/**
 * 管理员
 * @author Chen 2017/12/4
 */
@Table(name = "admin_user")
public class AdminUser extends BaseEntity {
    private String userName; //用户名
    private String password;//密码
    private String salt;    //盐
    private String email;   //email
    private String mobile;  //手机
    private Date createTime;//创建时间
    private Date lastLoginTime;//上次登录是时间
    private Integer status; //'状态  0：禁用   1：正常
    private String lastLoginIp;//上次登录IP
    private Long deptId;   // 部门ID

    public AdminUser() {
    }

    public AdminUser(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getLastLoginIp() {
        return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }
}

